package ngames.com.sushitv.tools;

/**
 * Created by zjy on 2015/8/13.
 */

import android.util.Log;

public class LogUtil {
    public static final boolean LOG = true;

    public static int d(String tag, String msg) {
        if (LOG) {
            return Log.d(tag, msg);
        } else {
            return -1;
        }
    }

    public static int i(String tag, String msg) {
        if (LOG) {
            return Log.i(tag, msg);
        } else {
            return -1;
        }
    }

    public static int e(String tag, String msg) {
        if (LOG) {
            return Log.e(tag, msg);
        } else {
            return -1;
        }
    }

    public static int e(String tag, String msg, Throwable tr) {
        if (LOG) {
            return Log.e(tag, msg, tr);
        } else {
            return -1;
        }
    }
}
